package com.wanyang.dao;

import com.wanyang.dao.base.DefaultCommonDaoImpl;
import com.wanyang.pojo.Cloud;
import org.nutz.dao.Cnd;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhai on 16/4/18.
 */
@Repository
public class AccountDao extends DefaultCommonDaoImpl<Cloud> {

    public List<Cloud> getAccountList(Integer userId) {
        return this.query(Cnd.where("user_id", "=", userId));
    }
}
